// swift-tools-version: 6.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "RoBiliBiliHotVideo",
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "RoBiliBiliHotVideo",
            targets: ["RoBiliBiliHotVideo"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/mirrors/SwiftyJSON.git", branch: "master"),
//        .package(url: "https://gitee.com/rolodestar/VideoPlayer.git", branch: "master"),
//        .package(url: "https://gitee.com/swift_package_mirror/Kingfisher.git", branch: "master"),
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "RoBiliBiliHotVideo",
            dependencies: [
                .product(name: "SwiftyJSON", package: "SwiftyJSON"),
            ],
            path: "Sources/RoBiliBiliHotVideo",
            sources: ["Models","Store","ReadMe"]
        ),
        .testTarget(
            name: "RoBiliBiliHotVideoTests",
            dependencies: [.product(name: "SwiftyJSON", package: "SwiftyJSON"),"RoBiliBiliHotVideo"]
        ),
    ]
)
